#include <bits/stdc++.h>
using namespace std;

bool Judge(long long a, long long b, long long c){
    long long sum = a + b;
    if(a > 0 && b > 0 && sum < 0) return true; // 正溢出
    if(a < 0 && b < 0 && sum >= 0) return false; // 负溢出
    return sum > c;
}

int main()
{
    int n;
    cin >> n;
    long long A, B, C;
    for(int i = 1; i <= n; ++i){
        cin >> A >> B >> C;
        cout << "Case #" << i << ": ";
        if(Judge(A, B, C)) cout << "true" << endl;
        else cout << "false" << endl;
    }
    
    return 0;
}
